const dpCommunityServiceOrder = (request) => {
	return {
		view_dpCommunityServiceOrder_page(query = {}) {
			return request('/bussiness/dpCommunityServiceOrder/page', {
				method: 'post',
				data: query,
			})
		},
		view_dpCommunityServiceOrder_add(query = {}) {
			return request('/bussiness/dpCommunityServiceOrder/add', {
				method: 'post',
				data: query,
			})
		},
		view_dpCommunityServiceOrder_edit(query = {}) {
			return request('/bussiness/dpCommunityServiceOrder/edit', {
				method: 'post',
				data: query,
			})
		},
		// 导入
		view_dpCommunityServiceOrder_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpCommunityServiceOrder/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpCommunityServiceOrder_downloadTemplate(query = {}) {
			return request('/bussiness/dpCommunityServiceOrder/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		// 导出
		view_dpCommunityServiceOrder_export(query = {}) {
			return request('/bussiness/dpCommunityServiceOrder/export', {
				method: 'post',
				data: query,
			})
		},
		// 删除
		view_dpCommunityServiceOrder_del(ids) {
			return request('/bussiness/dpCommunityServiceOrder/del', {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 全字段和查缺补漏接口
		view_dpCommunityServiceOrder_search(query = {}) {
			return request('/bussiness/dpCommunityServiceOrder/search', {
				method: 'post',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...dpCommunityServiceOrder(request),
})
